<?php /* Smarty version 2.6.16, created on 2009-05-04 22:01:01
         compiled from ApproveSong.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'messages', 'ApproveSong.html', 1, false),array('function', 'url', 'ApproveSong.html', 2, false),array('function', 'language', 'ApproveSong.html', 5, false),array('function', 'html_options', 'ApproveSong.html', 22, false),)), $this); ?>
<?php echo smarty_function_messages(array(), $this);?>

<form id="SongApproval_form" action="<?php echo smarty_function_url(array('link' => 'current'), $this);?>
" method="post">
<table  class=forumline cellSpacing=0 width="100%" id="song_table">
    <tr>
        <td class="row-header" colspan="7"><span><?php echo smarty_function_language(array('text' => 'songs_for_approval'), $this);?>
</span></td>
    </tr>
    <?php if (! getParam ( 'music_song_approving' )): ?>
    <tr>
    	<td>
		<div class="message_info" style="font-size:10pt;">
				<?php echo smarty_function_language(array('text' => 'Mod_Music.approval_info_song'), $this);?>

		</div>
		</td>
	</tr>		
    <?php else: ?>    
    <tr>
        <td class="catBottom" colspan="6">
        	<?php echo smarty_function_language(array('text' => 'here_you_can_approve_songs'), $this);?>

        </td><td class="catBottom" colspan="1">
        <?php echo smarty_function_language(array('text' => 'show'), $this);?>
 &nbsp;
            <select name="songs_page_size" onchange="makeIt('SongApproval_form','<?php echo smarty_function_url(array('link' => 'current','pageS' => 1), $this);?>
');">
                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['aSongsPageSize'],'selected' => $this->_tpl_vars['defSongsPageSize']), $this);?>

            </select>
        &nbsp; <?php echo smarty_function_language(array('text' => 'songs_per_page'), $this);?>

        </td>
    </tr>
    <tr>
        <th style="font-size:9pt;" class="row1">
            <input id="All_songs" type="checkbox" onClick="CheckAll('SongApproval_form','sel_songs[]', document.getElementById('All_songs').checked);">
        </th>
        <th style="font-size:9pt;">
            <span><a href="<?php echo $this->_tpl_vars['aSorting']['musician_name']['url']; ?>
" style="color:#FFFFFF"><?php echo smarty_function_language(array('text' => 'musician'), $this);?>
</a><img src="design/pic/<?php echo $this->_tpl_vars['aSorting']['musician_name']['img']; ?>
"></span>
        </th>
        <th style="text-align:center;font-size:9pt;">
            <span><a href="<?php echo $this->_tpl_vars['aSorting']['song_title']['url']; ?>
" style="color:#FFFFFF"><?php echo smarty_function_language(array('text' => 'song_title'), $this);?>
</a><img src="design/pic/<?php echo $this->_tpl_vars['aSorting']['song_title']['img']; ?>
"></span>
        </th>
        <th style="text-align:center;font-size:9pt;">
            <span><a href="<?php echo $this->_tpl_vars['aSorting']['album_title']['url']; ?>
" style="color:#FFFFFF"><?php echo smarty_function_language(array('text' => 'album_title'), $this);?>
</a><img src="design/pic/<?php echo $this->_tpl_vars['aSorting']['album_title']['img']; ?>
"></span>
        </th>
        <th style="text-align:center;font-size:9pt;">
            <span><a href="<?php echo $this->_tpl_vars['aSorting']['genre_name']['url']; ?>
" style="color:#FFFFFF"><?php echo smarty_function_language(array('text' => 'genre'), $this);?>
</a><img src="design/pic/<?php echo $this->_tpl_vars['aSorting']['genre_name']['img']; ?>
"></span>
        </th>
        <th style="text-align:center;font-size:9pt;">
            <span><a href="<?php echo $this->_tpl_vars['aSorting']['user_name']['url']; ?>
" style="color:#FFFFFF"><?php echo smarty_function_language(array('text' => 'from_member'), $this);?>
</a><img src="design/pic/<?php echo $this->_tpl_vars['aSorting']['user_name']['img']; ?>
"></span>
        </th>
        <th style="text-align:center;font-size:9pt;">
            <span><a href="<?php echo $this->_tpl_vars['aSorting']['song_cdate']['url']; ?>
" style="color:#FFFFFF"><?php echo smarty_function_language(array('text' => 'date'), $this);?>
</a><img src="design/pic/<?php echo $this->_tpl_vars['aSorting']['song_cdate']['img']; ?>
"></span>
        </th>
    </tr>
	<?php $_from = $this->_tpl_vars['aSongs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['song'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['song']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['aSong']):
        $this->_foreach['song']['iteration']++;
?>
    <tr>
        <td class="row1"><input name="songs[<?php echo $this->_tpl_vars['aSong']['song_id']; ?>
]" value="<?php echo $this->_tpl_vars['aSong']['song_id']; ?>
" id="<?php echo $this->_tpl_vars['aSong']['song_id']; ?>
" type="checkbox"></td>
        <td class="row1"><?php echo $this->_tpl_vars['aSong']['musician_name']; ?>
</td>
        <td class="row1"><a href="javascript:void(0);" onclick='window.open("<?php echo smarty_function_url(array('link' => 'public.popup.play','id' => $this->_tpl_vars['aSong']['song_id']), $this);?>
", "mp3_Player", "width=500,height=200");'><?php echo $this->_tpl_vars['aSong']['song_title']; ?>
</a></td>
        <td class="row1"><?php echo $this->_tpl_vars['aSong']['album_title']; ?>
</td>
        <td class="row1">
            <select name="genre[<?php echo $this->_tpl_vars['aSong']['song_id']; ?>
]">
            <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['aGenres'],'selected' => $this->_tpl_vars['aSong']['genre_id']), $this);?>

            </select>
        </td>
        <td class="row1"><p><?php echo $this->_tpl_vars['aSong']['user_name']; ?>
</p></td>
        <td class="row1"> <?php echo $this->_tpl_vars['aSong']['song_cdate']; ?>
</td>
    </tr>
	<?php endforeach; else: ?>
    <tr>
    	<td style="text-align:center" colspan="7" align="center"><div class="message_info"><?php echo smarty_function_language(array('text' => 'there_are_no_unapproved_songs'), $this);?>
.</div></td>
    </tr>
	<?php endif; unset($_from); ?>
  	<tr>
    	<td colspan="7" class="catBottom" style="text-align:center;">
        <input name="approve"  value="<?php echo smarty_function_language(array('text' => 'approve_songs'), $this);?>
" type="submit" />
        <input name="delete" value="<?php echo smarty_function_language(array('text' => 'delete_songs'), $this);?>
" type="submit" onclick="return sure('');" />
     	</td>
     </tr>
     <tr>
    	<td class="catBottom" colspan="7">
        <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['sRootPath'])."/_blocks/pager.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
    	</td>
  	</tr>
  	<?php endif; ?>
</table>
</form>